﻿using System;

namespace ECommon.InModel
{
    /// <summary>
    /// xml配置类
    /// </summary>
    [Serializable]
    internal partial class FileLogConfig
    {
        /// <summary>
        /// 日志文件目录
        /// </summary>
        public string Dir { get; set; } = null;
        /// <summary>
        /// 日志输出级别
        /// </summary>
        public LogLevel Level { get; set; } = LogLevel.All;

        /// <summary>
        /// 日志类型
        /// </summary>
        public LogType Type { get; set; } = LogType.Easy;
        /// <summary>
        /// 日志过期时间，单位：天
        /// </summary>
        public int Expire { get; set; } = 120;
    }
}
